# class Test22:
#     # 类属性
#     name = 'hoho'
#
#     @classmethod
#     def test02(cls):
#         print('类定义内部，类方法：', cls.name)
#
#     def __init__(self):
#         pass
#
#     def test01(self):
#         print('类定义内部, 普通方法test01-self：', self.name)
#         print('类定义内部, 普通方法test02-类名：', Test22.name)
#
#
# print(Test22.name)
#
# n1 = Test22()
# print(n1.name)
#
# n1.test01()

dict_data = {'a':1, 'b':2, 'c':3}

print('获取a的值-get：', dict_data.get('m'))

print('获取a的值-[]：', dict_data['A'])  # 不推荐
